{% extends "home/base.html" %}
{% load static %}
{% block title %}Reports{% endblock %}
{% block heading %}Reports{% endblock %}
{% block body %}

<div class="container">
<ul class="collapsible popout" data-collapsible="accordion">
  {% for lab in waiting_labs %}
  <li>
    <div class="collapsible-header blue-grey"><i class="material-icons">waiting_lab_appointment</i>waiting list for lab_room {{lab.item.manufacturer}}</div>
    <div class="collapsible-body">
      <span>Patient</span> <span class="blue-text text-lighten-1">{{lab.case.patient.first_name}} {{lab.case.patient.last_name}}</span><br>
      <span>Generated By</span> <span class="blue-text text-lighten-1">{{lab.case.doctor.first_name}} {{lab.case.doctor.last_name}}</span><br>
      <span>Item</span> <span class="blue-text text-lighten-1">{{lab.item.item_name}}</span><br>
      <span>Paid_time</span> <span class="blue-text text-lighten-1">{{lab.bill_paid_date}}</span><br>
      {% if isLab_doctor %}
      <span><a href="/reports/generate/{{lab.pk}}" class="btn blue"><span class="white-text text-lighten-1">Create Report</span></a></span><br>
      <span class="right-align"><a href="/reports/delete/{{lab.pk}}" class="btn-floating btn-large halfway-fab waves-effect waves-light red right-align"><i class="material-icons">D</i></a></span>
      {% endif %}
    </div>
  </li>
  {% endfor %}
</ul>
</div>

{% endblock %}